<template>
  <div class="container">
    <el-container>
      <el-header>
        <div class="midle_box">
          <div class="header_left" @click="$router.push({path:'/'})"><img src="@/assets/images/index_pic_logoTop2.png" alt=""></div>
          <div class="header_right">
            <el-menu router :default-active="$route.path" class="el-menu-demo" mode="horizontal">
              <el-menu-item index="/home">首页</el-menu-item>
              <el-menu-item index="/learningCenter">学习中心</el-menu-item>
              <el-menu-item index="/GoodQualityourse">优质好课</el-menu-item>
              <el-menu-item index="/forumCenter/list">论坛中心</el-menu-item>
              <el-menu-item index="/forumCenter" disabled>|</el-menu-item>
              <el-menu-item index="/after/home">进入后台</el-menu-item>
              <el-menu-item index="/login">登录</el-menu-item>
            </el-menu>
          </div>
        </div>
      </el-header>
      <el-main>
        <div class="midle_box">
          <router-view />
        </div>
      </el-main>
    </el-container>
  </div>
</template>

<script>
export default {}
</script>
<style lang="less" scoped>
.el-header {
  width: 100%;
  background-color: @background_color;
  color: #333;
  padding: 0;
  position: fixed;
  z-index: 1000;
  .midle_box {
    width: 1200px;
    display: flex;
    justify-content: space-between;
    .header_left {
      padding: 10px 0;
      cursor: pointer;
    }
  }
}
.el-menu-item.is-disabled {
  cursor: pointer;
}
.el-main {
  background-color: #f7f7f7;
  color: #333;
  // height: calc(100vh - 60px);
  padding: 0;
  .midle_box {
    padding-top: 60px;
  }
}
</style>